#ifndef __W_SENSOR
#define __W_SENSOR


extern union{
unsigned char status;
struct{
unsigned volt_status:1;			//0 for normal voltage 1 for high voltage
unsigned motor_status:1;		//0 for device is off  1 for device is on
unsigned sensor_up:2;			//
unsigned sensor_bot:2;			//
unsigned mode_0:1 ; 			//0 for auto/ 1 for manual
unsigned mode_1:1; 				//on/off switch
 };
}statusbits;

void init_ADC(void);
void ADC_scan(void)	;
void display_voltage(unsigned int volt);
void v_over(unsigned int volt);
void uptank(unsigned int level);
void sump(unsigned int level);
void mode_control(void);
void device_control(void);

#endif